package com.tsd.common.dao;

import com.tsd.common.entity.CommonTableSetting;
import com.tsd.common.entity.CommonTableSettingExt;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：CommonTableSettingMapper
 *
 * @author Hillpool
 * @date 2022/10/19 17:54:43
 */
public interface CommonTableSettingMapper {

    CommonTableSetting selectByPrimaryKey(Long id);

    CommonTableSettingExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(CommonTableSetting record);

    int insertSelective(CommonTableSetting record);

    int insertList(@Param("list") List<CommonTableSettingExt> list);

    int updateByPrimaryKey(CommonTableSetting record);

    int updateByPrimaryKeySelective(CommonTableSetting record);

    int updateList(@Param("list") List<CommonTableSettingExt> list);

    List<CommonTableSettingExt> selectByEntity(CommonTableSettingExt record);

    List<CommonTableSettingExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<CommonTableSettingExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<CommonTableSettingExt> selectByParams(@Param("params") Map<String, Object> params);
}